package com.csii.adhoc.info.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csii.adhoc.info.user.UserPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper  extends BaseMapper<UserPo> {
    int deleteUserByPrimaryKey(String userId);

    int insertOneUser(UserPo record);

    UserPo selectUserByPrimaryKey(String userId);

    int updateUserSelective(UserPo record);

    int updateUserByPrimaryKey(UserPo record);

    IPage<UserPo> selectPageUserPo(Page<UserPo> page,@Param("user") UserPo userPo);

    List<UserPo> selectPageUserPo(@Param("user")UserPo userPo);

    void updateUserClearPostId(String postId);

    void updateUserClearRoleId(String role);

    void updateUserClearDepartId(String depart);

    void updateListUser(List<UserPo> userPos);

    UserPo selectUserByUserName(String usrName);
}